From: Georges Basile Stavracas Neto Date: Thu, 13 Feb 2020 21:05:38 +0000 (-0300) Subject: authPrompt: Keep password entry on reset X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~35 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e27a2db3db951d3e2b187d6ab87d5e9b4c5a566;p=gnome-shell.git authPrompt: Keep password entry on reset Usually, logging in or unlocking the session is made asynchronously, and AuthPrompt properly manages which entry is currently visible. External code don't rely on any specific entry to be set, since it is AuthPrompt's responsibility to select the correct one to be shown. However, there's one specific case where AuthPrompt must preserve the password entry: on reset. The reset code preserved whatever entry was currently displayed, but after fe69dacaf1, it always changes to the username entry. Make sure to show the password entry on reset. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/999 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index df8767b82..5515db60d 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -452,6 +452,7 @@ var AuthPrompt = GObject.registerClass({ this.clear(); this._message.opacity = 0; this.setUser(null); + this._updateEntry(true); this.stopSpinning(); if (oldStatus == AuthPromptStatus.VERIFICATION_FAILED)